/*
 * @Description:
 * @Author: qingyang
 * @Date: 2021-06-01 13:19:45
 * @LastEditors: chenju
 * @LastEditTime: 2021-06-01 16:04:45
 */
import { Module } from 'vuex';
import { RootState } from '@/store';
import { state } from './state';
import { mutations } from './mutations';
import { actions } from './actions';
import type { UserState } from './state';
export { UserState };

export const user: Module<UserState, RootState> = {
  //   namespaced: true, // 命名空间
  // 公共全局状态
  state,
  // 集中式修改状态的方法
  mutations,
  // 异步请求的方法
  actions
};
